import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/jhclothing";

// 查询布料入库列表
export function listFabricInbound(query) {
  return request({
    url: '/inbound/fabric/list',
    method: 'get',
    params: query
  })
}

// 查询布料入库详细
export function getFabricInbound(fabricInboundId) {
  return request({
    url: '/inbound/fabric/' + parseStrEmpty(fabricInboundId),
    method: 'get'
  })
}

// 新增布料入库
export function addFabricInbound(data) {
  return request({
    url: '/inbound/fabric',
    method: 'post',
    data: data
  })
}

// 修改布料入库
export function updateFabricInbound(data) {
  return request({
    url: '/inbound/fabric',
    method: 'put',
    data: data
  })
}
// 删除布料入库
export function delFabricInbound(fabricInboundId) {
  return request({
    url: '/inbound/fabric/' + fabricInboundId,
    method: 'delete'
  })
}
